package com.techsoul.module.pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.common.core.pojo.vo.UserVo;
import com.techsoul.module.pms.pojo.entity.TbWmsMaterialReceiptLine;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialReceiptSaveParam;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialReceiptSearchParam;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialReceiptVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 入库计划 Service接口
 * 
 * @author liuen
 * @date 2022-01-25
 */
public interface ITbWmsMaterialReceiptService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(TbWmsMaterialReceiptSaveParam params);
    List<TbWmsMaterialReceiptLine> insertItem(TbWmsMaterialReceiptSaveParam params, String receiptId, UserVo sysUser);
    String insertALLItem(TbWmsMaterialReceiptSaveParam params);
    String insertALLToolsItem(TbWmsMaterialReceiptSaveParam params);

    String insertInLocation(TbWmsMaterialReceiptSaveParam params, String receiptId, UserVo sysUser, List<TbWmsMaterialReceiptLine> tbWmsMaterialReceiptLines);
    String addNewVehicleReceipt(TbWmsMaterialReceiptSaveParam params);
    int updataNewVehicleReceipt(TbWmsMaterialReceiptSaveParam params);
    String generateCustomer(TbWmsMaterialReceiptSaveParam params,String userId);
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(TbWmsMaterialReceiptSaveParam params);

    /**
     * 详情
     * @param id
     * @return
     */
    TbWmsMaterialReceiptVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<TbWmsMaterialReceiptVo> findAll(TbWmsMaterialReceiptSearchParam params);

    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<TbWmsMaterialReceiptVo> findAll(TbWmsMaterialReceiptSearchParam params, Integer current, Integer pageSize);

}
